//
//  UserAccount.swift
//  Weibo
//
//  Created by 赵志文 on 15/11/23.
//  Copyright © 2015年 zzw. All rights reserved.
//

import UIKit

class UserAccount: NSObject {
    
    var access_token:String?
    var expires_in :NSTimeInterval = 0{
        didSet{
            expiresDate = NSDate(timeIntervalSinceNow: expires_in)
        }
    }
    var remind_in :String?
    var uid :String?
    var expiresDate:NSDate?
    var name : String?
    var avatar_large:String?
    
    init(dict: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    override var description:String{
        let keys = ["access_token","expires_in","remind_in","uid"]
        
        return dictionaryWithValuesForKeys(keys).description
    }

}
